package com.nowcoder.community.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.text.SimpleDateFormat;

@Configuration
public class AlphaConfig {

    /**
     * @description: 定义一个时间格式的 bean
     * @author: Master_XXJS
     * @date: 2022/9/16 17:12
     * @param: []
     * @return: java.text.SimpleDateFormat
     **/
    @Bean
    public SimpleDateFormat simpleDateFormat() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    }

}
